<h1>New user</h1>

<%= error_messages_for :user %>

<% form_for(@user) do |f| %>
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Email</b><br />
    <%= f.text_field :email %>
  </p>

 <p>
    <b>Username</b><br />
    <%= f.text_field :username %>
  </p>

	<p>
		<%= f.check_box :showmail %>
	Show my e-mail address
	</p>
		<b>Homepage</b><br>
		<%= f.text_field :homepage %>

	<p><b>Your personal page:</b><br> 
		<%= f.text_area :personaltext %>
		

	</p>

<p>
	<label for="password">Password</label><br />
	<%= password_field :user, 'password' %>
</p>
<p>
	<label for="password_confirmation">Confirm Password</label><br />
	<%= password_field :user, 'password_confirmation' %>
</p>



  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', '/start_page' %>
